package cn.com.digitalnet.ad.util;

import java.util.List;

import com.google.common.collect.Lists;

public class Errors {
	
	private List<String> messages = Lists.newArrayList();
	public void addError(String message){
		messages.add(message);
	}
	
	public String toHTML(){
		StringBuilder sb = new StringBuilder();
		for(String m : messages){
			sb.append(m).append("<br/>");
		}
		return sb.toString();
	}
}
